package com.fs.ibox_h.servie.impl;

import com.fs.ibox_h.dao.adminDao;
import com.fs.ibox_h.pojo.admin;
import com.fs.ibox_h.servie.adminService;
import com.fs.ibox_h.util.BeanFactory;

public class adminServiceImpl implements adminService {
    @Override
    public admin selectByUsernameAndPwd(String username, String password) {
        adminDao adminDao = BeanFactory.createBean(adminDao.class);
        admin admin = adminDao.queryByUsernameAndPwd(username,password);
        return admin;
    }
}
